<html>
  <head>
     <link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
  </head>
  <body>
    <form action="/sign" method="post">
      <div><textarea name="content" rows="10" cols="60"></textarea></div>
      <div><input type="submit" value="Add Joke"></div>
    </form>

    <div><a href="{{ url }}">{{ url_linktext }}</a></div>
    <br>
    
    {% for joke in jokes %}
      {% if joke.author %}
        <b>{{ joke.author.nickname }}</b> wrote:
      {% else %}
       An anonymous person wrote:
      {% endif %}
      <blockquote>{{ joke.content|escape }}</blockquote>
    {% endfor %}

  </body>
</html>
